text/template.state.errorf (method)

47 uses

	text/template (current package)
		exec.go#L72: 	s.errorf("undefined variable: %s", name)
		exec.go#L87: 	s.errorf("undefined variable: %s", name)
		exec.go#L135: func (s *state) errorf(format string, args ...any) {
		exec.go#L222: 		state.errorf("%q is an incomplete or empty template", t.Name())
		exec.go#L293: 		s.errorf("unknown node: %s", node)
		exec.go#L304: 		s.errorf("if/with can't use %v", val)
		exec.go#L401: 			s.errorf("can't use %v to iterate over more than one variable", val)
		exec.go#L436: 			s.errorf("range over send-only channel %v", val)
		exec.go#L456: 				s.errorf("can't use %v iterate over more than one variable", val)
		exec.go#L491: 		s.errorf("range can't iterate over %v", val)
		exec.go#L502: 		s.errorf("template %q not defined", t.Name)
		exec.go#L505: 		s.errorf("exceeded maximum template depth (%v)", maxExecDepth)
		exec.go#L550: 		s.errorf("can't give argument to non-function %s", args[0])
		exec.go#L579: 		s.errorf("nil is not a command")
		exec.go#L585: 	s.errorf("can't evaluate command %q", firstWord)
		exec.go#L610: 			s.errorf("%s overflows int", constant.Text)
		exec.go#L615: 		s.errorf("%s overflows int", constant.Text)
		exec.go#L636: 		s.errorf("internal error: no fields in evalChainNode")
		exec.go#L639: 		s.errorf("indirection through explicit nil in %s", chain)
		exec.go#L674: 		s.errorf("%q is not a defined function", name)
		exec.go#L685: 			s.errorf("nil data; no entry for key %q", fieldName)
		exec.go#L694: 		s.errorf("nil pointer evaluating %s.%s", typ, fieldName)
		exec.go#L715: 				s.errorf("%s is an unexported field of struct type %s", fieldName, typ)
		exec.go#L718: 				s.errorf("%v", err)
		exec.go#L722: 				s.errorf("%s has arguments but cannot be invoked as function", fieldName)
		exec.go#L731: 				s.errorf("%s is not a method but has arguments", fieldName)
		exec.go#L741: 					s.errorf("map has no entry for key %q", fieldName)
		exec.go#L756: 			s.errorf("nil pointer evaluating %s.%s", typ, fieldName)
		exec.go#L759: 	s.errorf("can't evaluate field %s in type %s", fieldName, typ)
		exec.go#L785: 			s.errorf("wrong number of args for %s: want at least %d got %d", name, typ.NumIn()-1, len(args))
		exec.go#L788: 		s.errorf("wrong number of args for %s: want %d got %d", name, typ.NumIn(), numIn)
		exec.go#L791: 		s.errorf("%v", err)
		exec.go#L875: 		s.errorf("error calling %s: %w", name, err)
		exec.go#L902: 		s.errorf("invalid value; expected %s", typ)
		exec.go#L923: 				s.errorf("dereference of nil pointer of type %s", typ)
		exec.go#L928: 			s.errorf("wrong type for value; expected %s; got %s", typ, value.Type())
		exec.go#L943: 		s.errorf("cannot assign nil to %s", typ)
		exec.go#L977: 	s.errorf("can't handle %s for arg of type %s", n, typ)
		exec.go#L988: 	s.errorf("expected bool; found %s", n)
		exec.go#L999: 	s.errorf("expected string; found %s", n)
		exec.go#L1010: 	s.errorf("expected integer; found %s", n)
		exec.go#L1021: 	s.errorf("expected unsigned integer; found %s", n)
		exec.go#L1032: 	s.errorf("expected float; found %s", n)
		exec.go#L1042: 	s.errorf("expected complex; found %s", n)
		exec.go#L1059: 		s.errorf("evalEmptyInterface: nil (can't happen)")
		exec.go#L1069: 	s.errorf("can't handle assignment of %s to empty interface argument", n)
		exec.go#L1105: 		s.errorf("can't print %s of type %s", n, v.Type())